home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / MSDOS / find.bat < prev    next >
DOS Batch File  |  1979-12-31  |  622b  |  32 lines

  1. @echo off
  2. :: ---------------------------------- find.bat -------------------------------
  3.  
  4. :: This is part of the flight simulator 'fly8'.
  5. :: Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  6.  
  7. :: Find an address in the link map. used when a divide-overflow is reported
  8. :: in the log file.
  9.  
  10. if not exist f.map goto err
  11. if "%1" == "" goto auto
  12. if "%2" == "" goto using
  13.  
  14. awk -f find.awk AD=%1 MAIN=%2 <f.map 
  15. goto end
  16.  
  17. :err
  18. echo missing map file 'f.map'
  19. goto end
  20.  
  21. :auto
  22. sed -n "s/^+++1 /call find /;/^call /p" fly.log >temp.bat
  23. call temp.bat
  24. del temp.bat
  25. goto end
  26.  
  27. :using
  28. echo usage: find ffff:ffff mmmm:mmmm
  29. goto end
  30.  
  31. :end
  32.